﻿using EFCoreLockStudy2.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace EFCoreLockStudy2.EntityConfig;

public class HouseConfig : IEntityTypeConfiguration<House>
{
    void IEntityTypeConfiguration<House>.Configure(EntityTypeBuilder<House> builder)
    {
        builder.ToTable("T_House").ToTable(p => p.HasComment("房产表")).HasKey(p => p.Id);
    }
}
